<?php
/**
 * The template for displaying Sermon Archive pages.
 * To see this visit the http://yourdomain.com/sermons if you have permalinks enabled 
 * or http://yourdomain.com/?post_type=wpfc_sermon if not.
 * 
 * Recent Changes:
 * 1.2.2 - made translation ready, add code for featured image
 */

get_header(); ?>

<div id="wrapper3" class="container_12">
  <div id="ribbon" class="page">
		<div class="container_12 content" style="float:left;">
			<div class="grid_12 alpha">
        <?php
        $sermon_settings = get_option('wpfc_options');
        $archive_title = $sermon_settings['archive_title'];
        if(empty($archive_title)):
          $archive_title = 'Sermons';
        endif; 
        ?>
        <h1 class="page-title"><?php echo $archive_title; ?></h1>
			</div>
			<?php render_wpfc_sorting(); ?>
			<?php render_wpfc_sermon_archive(); ?>
    </div>
  </div>
</div>
<?php get_footer(); ?>